package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.contractuser.pojo.dto.ContractUserDeleteBatchDTO;
import com.xbongbong.pro.contractuser.pojo.vo.ContractUserDeleteBatchVO;

import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/13 16:28
 * @since v1.0
 */
public interface ContractUserService {

    /**
     * 批量删除
     * @author 吴峰
     * @date 2019/3/13 16:34
     * @param contractUserDeleteBatchDTO
     * @return com.xbongbong.pro.contractuser.pojo.vo.ContractUserDeleteBatchVO
     * @throws XbbException 业务异常
     */
    ContractUserDeleteBatchVO deleteBatch(ContractUserDeleteBatchDTO contractUserDeleteBatchDTO) throws XbbException;

    void dataConsistencyUpdateUser(String corpid, String userId, String userName, String userAvatar) throws XbbException;
    /**
     * 更新回滚es
     * @param idIn
     * @param corpid
     * @throws XbbException
     */
    void updateRollbackByContractId(List<Long> contractIdIn, String corpid) throws XbbException;
}
